import { axios } from '@/utils/request'

// api接口列表
const api = {
  list: '/activity/list',
  export: '/activity/export'
}

// 活动列表
export function list(params) {
  return axios({
    url: api.list,
    method: 'get',
    params
  })
}

// 导出活动列表
export function exportExcel(params) {
  return axios({
    url: api.export,
    method: 'post',
    data: params
  })
}
